const obj = {
  a:1,
  b:2
}
const proxy1 = new Proxy(obj,{
  get(target,propertykey){
    if(Reflect.has(target,propertykey)){
      return Reflect.get(target,propertykey)
    }else{
      return -1
    }
  },
  set(target,propertykey,value,receiver){
     console.log(target,propertykey,value,receiver)
   
     Reflect.set(target,propertykey,value)
  },
  hasOwn(target,propertykey){
    console.log(target,propertykey)
      return false
  }
})
proxy1.a = 2
console.log(proxy1)
console.log(proxy1.a)
console.log('eyeCount' in proxy1)